from django.db import models


# Create your models here.
class ImageBedRecord(models.Model):
    origin_image_name = models.CharField(max_length=255, verbose_name='原始图片名称')
    new_image_name = models.CharField(max_length=255, verbose_name='新图片名称')
    image_path = models.CharField(max_length=255, verbose_name='图片路径')
    image_size = models.CharField(max_length=255, verbose_name='图片大小(单位kb)',null=True)
    article_id = models.CharField(max_length=255, verbose_name='文章id')
    upload_time = models.DateTimeField(auto_now_add=True, verbose_name='上传时间')
    is_show = models.BooleanField(default=True,verbose_name='是否展示')
    is_delete = models.BooleanField(default=False,verbose_name='是否在主机中删除')

    class Meta:
        db_table = "t_image_bed_record"
        verbose_name = "上传记录表"
